diff options
author | Mountain Man <43313373+MountainMan1312@users.noreply.github.com> | 2023-06-06 22:24:59 -0400 |
---|---|---|
committer | Mountain Man <43313373+MountainMan1312@users.noreply.github.com> | 2023-06-06 22:24:59 -0400 |
commit | 939ab0490ea56d90eb1224e1640271cd7b804af3 (patch) | |
tree | 577b2ff5f5b5e545e73d89aa338b93bb2d3dd7e7 | |
parent | Add `setxkbmap` option to change CAPS LOCK to SUPER (diff) | |
download | dotfiles.old-939ab0490ea56d90eb1224e1640271cd7b804af3.tar.gz dotfiles.old-939ab0490ea56d90eb1224e1640271cd7b804af3.tar.bz2 dotfiles.old-939ab0490ea56d90eb1224e1640271cd7b804af3.zip |
Fix for Emacs Vterm $PS1
-rw-r--r-- | home/.bashrc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/home/.bashrc b/home/.bashrc index 88b1634..bc5e0a6 100644 --- a/home/.bashrc +++ b/home/.bashrc | |||
@@ -111,15 +111,16 @@ vterm_printf() { | |||
111 | fi | 111 | fi |
112 | } | 112 | } |
113 | 113 | ||
114 | vterm_prompt_end(){ | ||
115 | vterm_printf "51;A$(whoami)@$(hostname):$(pwd)" | ||
116 | } | ||
117 | |||
114 | if [[ "$INSIDE_EMACS" = 'vterm' ]]; then | 118 | if [[ "$INSIDE_EMACS" = 'vterm' ]]; then |
115 | function clear() { | 119 | function clear() { |
116 | vterm_printf "51;Evterm-clear-scrollback"; | 120 | vterm_printf "51;Evterm-clear-scrollback"; |
117 | tput clear; | 121 | tput clear; |
118 | } | 122 | } |
123 | PS1="$ " | ||
124 | PS1=$PS1'\[$(vterm_prompt_end)\]' | ||
119 | fi | 125 | fi |
120 | |||
121 | vterm_prompt_end(){ | ||
122 | vterm_printf "51;A$(whoami)@$(hostname):$(pwd)" | ||
123 | } | ||
124 | PS1=$PS1'\[$(vterm_prompt_end)\]' | ||
125 | ######################################################################## | 126 | ######################################################################## |